package org.keyyond.ms.business.service.impl;


import java.util.Map;
import org.keyyond.ms.business.dao.MsCodeValueDao;
import org.keyyond.ms.business.model.MsCodeValue;
import org.keyyond.ms.business.service.MsCodeValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MsCodeValueServiceImpl implements MsCodeValueService{
	
	@Autowired
	private MsCodeValueDao codeValueDao;

	@Override
	public MsCodeValue getCodeValueByCkeyAndCcode(Map<String, String> paramMap) {
		// TODO Auto-generated method stub
		//根据ckey和ccode查询出配置信息
		MsCodeValue codeValue = new MsCodeValue();
		codeValue.setCcode(paramMap.get("ccode"));
		codeValue.setCkey(paramMap.get("ckey"));
		return  codeValueDao.getValueByKeyAndCodeAndCompanycodeAndDeptcode(codeValue);
	}

}
